package etc;

import java.io.IOException;
import java.util.HashMap;

import etc.helper.IniFile;


@SuppressWarnings("javadoc")
public class Language
{

	private static final String FILENAME = "language.ini";
	private static HashMap<String, String> data = new HashMap<String, String>();

	public static String get(String key)
	{
		// Check whether the key exists
		if(data.containsKey(key))
		{
			// Return the data
			return data.get(key);
		}

		// Return requested key
		return key;
	}

	public static void load()
	{
		try {
			data = IniFile.load(FILENAME);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}